<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";


%>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>网上投票系统的设计与实现</title>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/clock.js"></script>
</head>
<body>
<!--top-->
<div class="acc_top">
     <div class="acc_header">
     	<h1><span style="font-weight: bold;font-size: 40px;">网上投票系统的设计与实现</span></h1>
     </div>
     <div class="acc_nav">
     	 <%@ include file="menu.jsp" %>
     </div>
 <!--站内搜索-->
 <div class="acc_search">
    <div class="dateinfo fl"  id="clock"></div>
    <script>
           //时间
	 var clock = new Clock();
	 clock.display(document.getElementById("clock"));
       </script>
     
 </div>
<!--/站内搜索-->
</div>
<!--/top-->


<script type="text/javascript">
function checkfrom()
{
	 if (document.getElementById('usernameid').value=="")
	{
		alert("用户名不能为空");
		return false;
	}

	if (document.getElementById('passwordid').value=="")
	{
		alert("密码不能为空");
		return false;
	}
	
	
	
	return true;
}
</script>

<!--main 主体开始-->
<form name="form1" method="post" action="indexmethod!login" onsubmit="return checkfrom()">
<div class="acc_main reg_main">
    <div class="reg_left">
      <div class="acc_map">当前位置：<a href=".">首页</a>><a href="#" style="color:#1800ff;">用户登录</a></div>
      <div class="reg_content">
           <h1>用户登录</h1>
           <div class="line"></div>
           <div class="reg_form">
             <p>&nbsp;&nbsp;&nbsp;&nbsp;用户名：<input type="text" class="acc_text" placeholder="请输入您的用户名" name="username"  id="usernameid" ></p>
             <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;密&nbsp;&nbsp;码：<input type="password" class="acc_text" placeholder="请输入您的密码" name="password" id="passwordid" ></p>
             
            <p>
               <input type="submit" value="登录" class="acc_btn acc_submit"> 
              <input type="reset" value="重置" class="acc_btn acc_reset">
              </p>
              <p>没有账号，请点此<a href="reg.jsp">注册</a>！</p>
           </div>
      </div>
    </div>
    
    
</div>

</form>

<!--/main主体结束-->
<div class="clear"></div>
  <!--footer-->
    <div class="acc_footer">
           <table width="100%" border="0" cellpadding="0" cellspacing="0">
     <tbody>
        <tr>
            <td width="140px"> </td>
            <td>
               <div class="privatnost">
     
               </div>
               <p>网上投票系统的设计与实现版权所有　</p>
               
          </tr>
               </tbody>
            </table>  
    </div>
     <!--/footer-->
</body>
</html>

